//
//  NVideoSectionController.m
//  SampleApp2
//
//  Created by GXHC on 2023/6/30.
//

#import "NVideoSectionController.h"
#import "../../RecommendController/Model/GTListItem.h"
#import "../../Utils/GTScreen.h"
#import "../../VideoController/View/GTVideoCoverViewCollectionViewCell.h"
@interface NVideoSectionController ()

@property(nonatomic, copy, readwrite) GTListItem *listItem;

@end



@implementation NVideoSectionController

- (CGSize)sizeForItemAtIndex:(NSInteger)index{
	return CGSizeMake(SCREEN_WIDTH,200);
}

- (__kindof UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index{
	GTVideoCoverViewCollectionViewCell *cell = [self.collectionContext dequeueReusableCellOfClass:[GTVideoCoverViewCollectionViewCell class] forSectionController:self atIndex:index];
	[cell layoutWithVideoCoverUrl:@"videoCover" videoUrl:@""];
	return cell;
}

- (void)didUpdateToObject:(id)object{
	if(object && [object isKindOfClass:[GTListItem class]]){
		self.listItem = object;
	}
}

@end
